import unittest

# loader
# parame1:加载模块的路径
# parame2:加载模块名的规则
# 默认返回:suite
# TODO 在当前目录下找到test_cases包
discover = unittest.defaultTestLoader.discover('./test_cases', pattern='demo')

# 创建执行器
runner = unittest.TextTestRunner(verbosity=2)
runner.run(discover)
